package creator.ui.graphics.bean;

public class Switch {

  private static boolean isJump = false;
  private static int canvasSub = 0;
  private static boolean isContinue = true;
  private static boolean testSwitch = true;

  public static void _setSub(int i) {
    canvasSub = i;
  }

  public static void _openTestSwitch() {
    testSwitch = true;
  }

  public static void _closeTestSwitch() {
    testSwitch = false;
  }

  public static boolean _isTesting() {
    return testSwitch;
  }

  public static boolean _isJump() {
    return isJump;
  }

  public static void _closeJump() {
    _closeTestSwitch();
    isJump = false;
  }

  public static boolean _isContinue() {
    return isContinue;
  }

  public static void _openContinue() {
    isContinue = true;
  }

  public static void _closeContinue() {
    isContinue = false;
  }

  public static int _getSub() {
    return canvasSub;
  }

  public static void _jumpTo(int i) {
    isJump = true;
    _closeContinue();
    i--;
    canvasSub = i;
  }
}
